local skel = fk.CreateSkill {
  name = "emo__yuedongxh",
  tags = {Skill.Compulsory},
}

skel:addEffect(fk.CardUsing, {
  anim_type = "drawcard",
  can_trigger = function (self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and data.card.is_damage_card
  end,
  on_use = function (self, event, target, player, data)
    player.room:addPlayerMark(player, "@emo__leihuo")
    player:drawCards(1, skel.name)
  end,
})

skel:addEffect(fk.Damage, {
  anim_type = "offensive",
  can_trigger = function (self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and data.to and not data.to.dead
  end,
  on_use = function (self, event, target, player, data)
    local room = player.room
    room:addPlayerMark(data.to, "@emo__leihuo")
    local cards = data.to:getCardIds("he")
    if #cards > 0 then
      room:throwCard(table.random(cards), skel.name, data.to, player)
    end
  end,
})

Fk:loadTranslationTable{
  ["emo__yuedongxh"] = "悦动心火",
  [":emo__yuedongxh"] = "锁定技，每当你使用一张伤害牌时，你获得1枚雷火标记并摸一张牌；当你对一名角色造成伤害后，令其获得1枚雷火标记并随机弃置一张牌。",
  ["@emo__leihuo"] = "雷火",

  ["$emo__yuedongxh1"] = "爆燃吧，雷火之心！",
}


return skel
